//
//  ListLiaisonViewController.h
//  FMS
//
//  Created by Steven on 10/14/13.
//  Copyright (c) 2013 QGSVN. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "LiaisonDetailViewController.h"
#import "FilterViewController.h"
#import "UIMySearchBar.h"

@interface ListLiaisonViewController : FMSViewController<LiaisonDetailViewDelegate, FilterViewDelegate, UITableViewDataSource, UITableViewDelegate,UISearchBarDelegate>{
    NSMutableDictionary *dictLanguage;
    NSMutableArray *arrayLiaison;
    
    //search liaison
    BOOL isSearch;
    NSMutableArray *arraySearchLiaison;
    
    int indexLiaison;
    BOOL isLoadMore;
    BOOL didReadyLoadMore;
    
    int indexLiaisonSearch;
    BOOL isLoadMoreSearch;
    
    //outlet
    __weak IBOutlet UIView *viewFilter;
    __weak IBOutlet UILabel *lblTitleCompany;
    __weak IBOutlet UILabel *lblTitleLiaisonType;
    __weak IBOutlet UILabel *lblTitlePersonInCharge;
    __weak IBOutlet UILabel *lblTitleEmail;
    __weak IBOutlet UILabel *lblTitleContact;
    __weak IBOutlet UIMySearchBar *seachLiaison;
    __weak IBOutlet CustomButton *btnSortBy;
    __weak IBOutlet CustomButton *btnFilterBy;
    
    NSMutableDictionary *contentFitler;
    NSMutableDictionary *contentSort;
    NSString *strSearchKey;
    
    UIButton *btnCurtain;
}

@property (weak, nonatomic) IBOutlet UITableView *tbListLiaison;

- (IBAction)filterLiaison:(id)sender;
- (IBAction)sortLiaison:(id)sender;
@end
